/*
 *  Copyright (c) 2022 ZhuHai Jieli Technology Co.,Ltd.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

#ifndef BTSTACK_ERROR_H
#define BTSTACK_ERROR_H

#define ERROR_CODE_SUCCESS                                              0x00
#define ERROR_CODE_PAGE_TIMEOUT                                         0x04
#define ERROR_CODE_AUTHENTICATION_FAILURE                               0x05
#define ERROR_CODE_PIN_OR_KEY_MISSING                                   0x06
#define ERROR_CODE_CONNECTION_TIMEOUT                                   0x08
#define ERROR_CODE_SYNCHRONOUS_CONNECTION_LIMIT_TO_A_DEVICE_EXCEEDED    0x0A
#define ERROR_CODE_ACL_CONNECTION_ALREADY_EXISTS                        0x0B
#define ERROR_CODE_CONNECTION_REJECTED_DUE_TO_LIMITED_RESOURCES         0x0D
#define ERROR_CODE_CONNECTION_REJECTED_DUE_TO_UNACCEPTABLE_BD_ADDR      0x0F
#define ERROR_CODE_CONNECTION_ACCEPT_TIMEOUT_EXCEEDED                   0x10
#define ERROR_CODE_REMOTE_USER_TERMINATED_CONNECTION                    0x13
#define ERROR_CODE_CONNECTION_TERMINATED_BY_LOCAL_HOST                  0x16

#define CUSTOM_BB_AUTO_CANCEL_PAGE                                      0xFD  //// app cancle page
#define BB_CANCEL_PAGE                                                  0xFE  //// bb cancle page

#endif

